<table class="filtered-table">
    <?= $this->formInvoices ?>
    <? foreach ($this->invoices as $invoice) : ?>
        <tr>
            <td>
                <?= $invoice->id ?>
            </td>
            <td>
                <?= $this->escape($invoice->to_name) ?>
            </td>
            <td>
                <?= $invoice->amount ?>
            </td>
            <td>
                <?= $invoice->created ?>
            </td>
            <td>
                <?= $invoice->updated ?>
            </td>
            <td>
                <?= $invoice->order_id ?>
            </td>
            <td>
                <?= $this->translate($invoice->invoice_status_name) ?>
            </td>
            <td>
                <a href="/<?= $this->language ?>/admin/order/view/<?= $invoice->order_id ?>"><?= $this->translate('View'); ?></a>
            </td>
        </tr>
    <? endforeach; ?>
</table>